package com.hyt.it.ogt.pj.enums;

/**
 * 科目评分是否汇总枚举
 *
 * @author liying
 */
public enum SubjectScoreStageEnums {

    UNSUMMARY("0", "未汇总"),
    SUMMARY("1", "已汇总"),
    ;
    private String code;
    private String desc;

    SubjectScoreStageEnums(String code, String desc) {
        this.code = code;
        this.desc = desc;
    }

    public static SubjectScoreStageEnums getMarkTypeEnumsByCode(String code) {
        for (SubjectScoreStageEnums markTypeEnums : SubjectScoreStageEnums.values()) {
            if (markTypeEnums.getCode().equals(code)) {
                return markTypeEnums;
            }
        }
        return null;
    }

    public String getCode() {
        return code;
    }


    public String getDesc() {
        return desc;
    }
}
